#ifndef CDISHTYPE_H
#define CDISHTYPE_H

#include <QObject>
#include <QString>
#include "cobject.h"

class CDishType : public CObject
{
    Q_OBJECT
//    Q_PROPERTY(int id READ id WRITE setId NOTIFY idChanged)
    Q_PROPERTY(int parentId READ parentId WRITE setParentId NOTIFY parentIdChanged)
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(QString description READ description WRITE setDescription NOTIFY descriptionChanged)
    Q_PROPERTY(QString picture READ picture WRITE setPicture NOTIFY pictureChanged)
public:
    explicit CDishType(QObject *parent = 0);

//    int id();
//    void setId(int id);

    int parentId();
    void setParentId(int id);

    QString name();
    void setName(QString name);

    QString description();
    void setDescription(QString description);

    QString picture();
    void setPicture(QString picture);

signals:
//    void idChanged();
    void parentIdChanged();
    void nameChanged();
    void descriptionChanged();
    void pictureChanged();

public slots:

private:
    int m_id;
    int m_parent_id;
    QString m_name;
    QString m_description;
    QString m_picture;
};

#endif // CDISHTYPE_H
